package com.rm.zeyou.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import com.rm.zeyou.response.ApiRestResponse;
import com.rm.zeyou.service.TechnicianAuthenticationService;
import com.rm.zeyou.util.login.LoginUtil;
import com.rm.zeyou.vo.response.SelectTechnicianAuthenticationResponseVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 技师资质表 前端控制器
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:09
 */
@Api(tags = "技师资质相关")
@RestController
@RequestMapping("/api/technicianAuthentication")
public class TechnicianAuthenticationController {
    @Resource
    private TechnicianAuthenticationService technicianAuthenticationService;
    @Resource
    private LoginUtil loginUtil;

    @ApiOperation("查询技师资质")
    @GetMapping("selectTechnicianAuthentication")
    @SaCheckLogin(type = "user")
    public ApiRestResponse<SelectTechnicianAuthenticationResponseVo> selectTechnicianAuthentication(@RequestParam Long tid) {
        return technicianAuthenticationService.selectTechnicianAuthentication(tid);
    }
}
